<?php

namespace common\models\patient;

use Yii;

/**
 * This is the model class for table "{{%patient_infusion_print_log}}".
 *
 * @property int $id
 * @property int $project_id 项目ID
 * @property int $patient_user_id 患者ID
 * @property int $queue_id 队列ID
 * @property string $drug_config_ids 药品配置IDs
 * @property int $type 类型【1配药单、2巡视单】
 * @property int $operate_id 操作人
 * @property int $created_at 创建时间
 * @property int $updated_at 更新时间
 */
class InfusionPrintLog extends \common\models\BaseModel
{
    const TYPE_PY = 1;
    const TYPE_XS = 2;

    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%patient_infusion_print_log}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['project_id', 'patient_user_id', 'queue_id', 'type', 'operate_id', 'created_at', 'updated_at'], 'integer'],
            [['drug_config_ids'], 'required'],
            [['drug_config_ids'], 'safe'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'project_id' => '项目ID',
            'patient_user_id' => '患者ID',
            'queue_id' => '队列ID',
            'drug_config_ids' => '药品配置IDs',
            'type' => '类型【1配药单、2巡视单】',
            'operate_id' => '操作人',
            'created_at' => '创建时间',
            'updated_at' => '更新时间',
        ];
    }
}
